package com.amnc.client;
import java.io.File;
import java.text.ParseException;

import com.amnc.common.dif.exception.DIFDataException;
import com.amnc.common.dif.exception.DIFDataPairParsingException;
import com.amnc.common.dif.exception.DIFKeywordException;
import com.amnc.common.dif.exception.DIFNumberPairInfoException;
import com.amnc.common.dif.exception.DIFStringFormatException;
import com.amnc.service.ExcelReader;
public class ExcelAbortion {

	public static void main(String[] args) throws InterruptedException, DIFKeywordException, DIFDataPairParsingException, DIFNumberPairInfoException, DIFStringFormatException, DIFDataException, ParseException {
			String  newPath="D:\\Data\\abortion";	
	
				File f=new File(newPath);
			    File fileList[]=f.listFiles();
			    long startTime=System.currentTimeMillis();   //
			    	 ExcelReader.getAndSendAbortion(fileList[1],6);
			      long endTime=System.currentTimeMillis(); //
				  System.out.println("abortion8196  "+(endTime-startTime)/1000+"s"); 
				  System.out.println("abortion8196 "+(endTime-startTime)/1000/60+"m");
	}
}
